﻿using FluentNHibernate.Mapping;

namespace RookieGrow.Domain.Model.NhSpStore.Map
{
    public class ProductMap : ClassMap<Product>
    {
        public ProductMap()
        {
            Table("product");
            LazyLoad();
            Id(x => x.Id).GeneratedBy.Identity().Column("id");
            Map(x => x.Name).Column("name");
            Map(x => x.Description).Column("description");
            Map(x => x.Price).Column("price");
            Map(x => x.Category).Column("category");
        }
    }
}
